﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="DTcms.Web.UI.Page.article_list" ValidateRequest="false" %>
<%@ Import namespace="System.Collections.Generic" %>
<%@ Import namespace="System.Text" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="DTcms.Common" %>

<script runat="server">
override protected void OnInit(EventArgs e)
{

	/* 
		This page was created by DTcms Template Engine at 2017-12-03 22:28:17.
		本页面代码由DTcms模板引擎生成于 2017-12-03 22:28:17. 
	*/

	base.channel = "news";
	base.OnInit(e);
	StringBuilder templateBuilder = new StringBuilder(220000);
	const int pagesize = 20;

	templateBuilder.Append("<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <title>新闻列表</title>\r\n    <link rel=\"stylesheet\" href=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/lib/bootstrap/css/bootstrap.min.css\">\r\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/css/font-awesome.min.css\">\r\n    <link rel=\"stylesheet\" href=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/css/common_style.css\">\r\n    <link rel=\"stylesheet\" href=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/css/bdsstyle.css\">\r\n    <link rel=\"stylesheet\" href=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/css/style_cmnt.css\">\r\n    <link rel=\"stylesheet\" href=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/css/style.css\">\r\n    <!--[if lt IE 9]>\r\n	      <script src=\"https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js\"></");
	templateBuilder.Append("script>\r\n	      <script src=\"https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js\"></");
	templateBuilder.Append("script>\r\n	 <![endif]-->\r\n    <style type=\"text/css\">\r\n    .serach_div {\r\n        margin-right: 0px;\r\n        */\r\n    }\r\n\r\n    .select_sign,\r\n    .serach_div .select-main,\r\n    .serach_div span {\r\n        float: left;\r\n    }\r\n\r\n    .serach_div span {\r\n        padding: 0px 10px;\r\n        line-height: 30px;\r\n    }\r\n\r\n    .select_Form .select_Option {\r\n        line-height: 30px;\r\n        padding: 10px\r\n    }\r\n    </style>\r\n</head>\r\n\r\n<body>\r\n    <div class=\"topbar\">\r\n        <div class=\"container\">\r\n            <div class=\"nav-right\">\r\n                <ul class=\"topnav\">\r\n                    <li><a href=\"");
	templateBuilder.Append(linkurl("index"));

	templateBuilder.Append("\">首页</a></li>\r\n                    <li><a href=\"");
	templateBuilder.Append(linkurl("news"));

	templateBuilder.Append("\" class=\"active\">新闻资讯</a></li>\r\n                    <li><a href=\"");
	templateBuilder.Append(linkurl("resource"));

	templateBuilder.Append("\">资源概览</a></li>\r\n                    <li><a href=\"");
	templateBuilder.Append(linkurl("services"));

	templateBuilder.Append("\">读者服务</a></li>\r\n                    <li><a href=\"");
	templateBuilder.Append(linkurl("library"));

	templateBuilder.Append("\">本馆概况</a></li>\r\n                    <li><a href=\"");
	templateBuilder.Append(linkurl("help"));

	templateBuilder.Append("\">帮助</a></li>\r\n                </ul>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class=\"lib_hd\">\r\n        <div class=\"container\">\r\n            <div class=\"nav-left\">\r\n                <a href=\"");
	templateBuilder.Append(linkurl("index"));

	templateBuilder.Append("\" class=\"logo\" title=\"");
	templateBuilder.Append(Utils.ObjectToStr(site.name));
	templateBuilder.Append("\">\r\n                        <img src=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/images/logo.png\" alt=\"\">\r\n                    \r\n                    </a>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class=\"container mt20\">\r\n        <ol class=\"breadcrumb\">\r\n            <li><a href=\"=");
	templateBuilder.Append(linkurl("index"));

	templateBuilder.Append("\">首页</a></li>\r\n            <li class=\"active\">新闻列表</li>\r\n        </ol>\r\n        <div class=\"clearfix\">\r\n            <div class=\"select_Form mb30\">\r\n                <div class=\"select_Option\">\r\n                    <div class=\"select_sign\" style=\"width: 55%\">\r\n                        <span class=\"spanzm\">ALL</span>\r\n                        <span class=\"spanzm\">A</span>\r\n                        <span class=\"spanzm\">B</span>\r\n                        <span class=\"spanNo spanzm\">C</span>\r\n                        <span class=\"spanzm\">D</span>\r\n                        <span class=\"spanzm\">E</span>\r\n                        <span class=\"spanzm\">F</span>\r\n                        <span class=\"spanzm\">G</span>\r\n                        <span class=\"spanzm\">H</span>\r\n                        <span class=\"spanzm\">I</span>\r\n                        <span class=\"spanzm\">J</span>\r\n                        <span class=\"spanzm\">K</span>\r\n                        <span class=\"spanzm\">L</span>\r\n                        <span class=\"spanzm\">M</span>\r\n                        <span class=\"spanzm\">N</span>\r\n                        <span class=\"spanzm\">O</span>\r\n                        <span class=\"spanzm\">P</span>\r\n                        <span class=\"spanzm\">Q</span>\r\n                        <span class=\"spanzm\">R</span>\r\n                        <span class=\"spanzm\">S</span>\r\n                        <span class=\"spanzm\">T</span>\r\n                        <span class=\"spanzm\">Y</span>\r\n                        <span class=\"spanzm\">V</span>\r\n                        <span class=\"spanzm\">W</span>\r\n                        <span class=\"spanzm\">S</span>\r\n                        <span class=\"spanzm\">Y</span>\r\n                        <span class=\"spanzm\">Z</span>\r\n                    </div>\r\n                    <div class=\"serach_div\" style=\"width: 45%\">\r\n                        <!--必须引用js渲染插件-->\r\n                        <span>语种:</span>\r\n                        <select name=\"drop2\" class=\"ui-select\">\r\n                            <option value=\"\">全部</option>\r\n                            <option value=\"1\">选项1</option>\r\n                            <option value=\"2\">选项2</option>\r\n                            <option value=\"3\">选项3</option>\r\n                        </select>\r\n                        <span>分类:</span>\r\n                        <select name=\"drop2\" class=\"ui-select\">\r\n                            <option value=\"ALL\">全部</option>\r\n                            <option value=\"A\">马列主义、毛泽东思想、邓小平理论</option>\r\n                            <option value=\"B\">哲学、宗教</option>\r\n                            <option value=\"C\">社会科学总论</option>\r\n                            <option value=\"D\">政治、法律</option>\r\n                            <option value=\"E\">军事</option>\r\n                            <option value=\"F\">经济</option>\r\n                            <option value=\"G\">文化、科学、教育、体育</option>\r\n                            <option value=\"H\">语言、文字</option>\r\n                            <option value=\"I\">文学</option>\r\n                            <option value=\"J\">艺术</option>\r\n                            <option value=\"K\">历史、地理</option>\r\n                            <option value=\"N\">自然科学总论</option>\r\n                            <option value=\"O\">数理科学与化学</option>\r\n                            <option value=\"O2\">数学</option>\r\n                            <option value=\"O3\">力学</option>\r\n                            <option value=\"O4\">物理学</option>\r\n                            <option value=\"O5\">物理学</option>\r\n                            <option value=\"O6\">化学</option>\r\n                            <option value=\"O7\">晶体学</option>\r\n                            <option value=\"P\">天文学、地球科学</option>\r\n                            <option value=\"Q\">生物科学</option>\r\n                            <option value=\"R\">医药、卫生</option>\r\n                            <option value=\"S\">农业科学</option>\r\n                            <option value=\"T\">工业技术</option>\r\n                            <option value=\"TB\">一般工业技术</option>\r\n                            <option value=\"TD\">矿业工程</option>\r\n                            <option value=\"TE\">石油、天然气工业</option>\r\n                            <option value=\"TF\">冶金工业</option>\r\n                            <option value=\"TG\">金属学与金属工艺</option>\r\n                            <option value=\"TH\">机械、仪表工业</option>\r\n                            <option value=\"TJ\">武器工业</option>\r\n                            <option value=\"TK\">能源与动力工程</option>\r\n                            <option value=\"TL\">原子能技术</option>\r\n                            <option value=\"TM\">电子技术</option>\r\n                            <option value=\"TN\">无线电电子学、电信技术</option>\r\n                            <option value=\"TP\">自动化技术、计算机技术</option>\r\n                            <option value=\"TQ\">化学工业</option>\r\n                            <option value=\"TS\">轻工业、手工业</option>\r\n                            <option value=\"TU\">建筑科学</option>\r\n                            <option value=\"TV\">水利工程</option>\r\n                            <option value=\"U\">交通运输</option>\r\n                            <option value=\"V\">航空、航天</option>\r\n                            <option value=\"X\">环境科学、安全科学</option>\r\n                            <option value=\"Z\">综合性图书</option>\r\n                        </select>\r\n                        <input class=\"zk_input\" type=\"\" name=\"\" placeholder=\"书名/作者\">\r\n                        <div class=\"zk_Btn_i\">搜索</div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <ul class=\"ul-img\" style=\"min-height: 400px\">\r\n            ");
	DataTable newsList = get_article_list(channel, 0, 10, "status=0");

	if (newsList!=null)
	{

	int newdr__loop__id=0;
	foreach(DataRow newdr in newsList.Rows)
	{
		newdr__loop__id++;


	templateBuilder.Append("\r\n            <li>\r\n                <div class=\"row\">\r\n                    ");
	if (!string.IsNullOrEmpty(Utils.ObjectToStr(newdr["img_url"])))
	{

	templateBuilder.Append("\r\n                    <div class=\"col-sm-3\">\r\n                        \r\n                        <a href=\"");
	templateBuilder.Append(linkurl("news_show",Utils.ObjectToStr(newdr["id"])));

	templateBuilder.Append("\">\r\n                            <img src=\"" + Utils.ObjectToStr(newdr["img_url"]) + "\"/>\r\n                        </a>\r\n                       \r\n                    </div>\r\n                    <div class=\"col-sm-9\">\r\n                        <div class=\"green-color\" style=\"font-size:22px;font-weight: bold\"><a href=\"");
	templateBuilder.Append(linkurl("news_show",Utils.ObjectToStr(newdr["id"])));

	templateBuilder.Append("\">" + Utils.ObjectToStr(newdr["title"]) + "</a></div>\r\n                        <div style=\"color: #1481b4;\">\r\n                            发布者：" + Utils.ObjectToStr(newdr["author"]) + "\r\n                        </div>\r\n                        <div>\r\n                           " + Utils.ObjectToStr(newdr["zhaiyao"]) + "\r\n                        </div>\r\n                        <div class=\"ta-r\">\r\n                            发表时间：" + Utils.ObjectToStr(newdr["add_time"]) + "\r\n                        </div>\r\n                    </div>\r\n                    ");
	}
	else
	{

	templateBuilder.Append("\r\n                        <div class=\"green-color\" style=\"font-size:22px;font-weight: bold\"><a href=\"");
	templateBuilder.Append(linkurl("news_show",Utils.ObjectToStr(newdr["id"])));

	templateBuilder.Append("\">" + Utils.ObjectToStr(newdr["title"]) + "</a></div>\r\n                        <div style=\"color: #1481b4;\">\r\n                            发布者：" + Utils.ObjectToStr(newdr["author"]) + "\r\n                        </div>\r\n                        <div>\r\n                           " + Utils.ObjectToStr(newdr["zhaiyao"]) + "\r\n                        </div>\r\n                        <div class=\"ta-r\">\r\n                            发表时间：" + Utils.ObjectToStr(newdr["add_time"]) + "\r\n                        </div>\r\n                     ");
	}	//end for if

	templateBuilder.Append("\r\n                </div>\r\n            </li>\r\n            ");
	}	//end for if

	}
	else
	{

	templateBuilder.Append("\r\n            暂无数据\r\n            ");
	}	//end for if

	templateBuilder.Append("\r\n        </ul>\r\n        \r\n        <div class=\"myfooter list_ft\">\r\n            <div class=\"text-right\">\r\n                <span>共40条，每也显示</span>\r\n                <select class=\"form-control m-b page_select\" name=\"account\">\r\n                    <option>10</option>\r\n                    <option>20</option>\r\n                    <option>30</option>\r\n                </select>\r\n                <div class=\"pagination\">\r\n                    <button class=\"btn btn-white btn-num btn-circle\" type=\"button\"><i class=\"fa fa-chevron-left\"></i>\r\n                    </button>\r\n                    <button class=\"btn btn-white btn-num\">1</button>\r\n                    <button class=\"btn btn-white btn-num active\">2</button>\r\n                    <button class=\"btn btn-white btn-num\">3</button>\r\n                    <button class=\"btn btn-white btn-num\">4</button>\r\n                    <button class=\"btn btn-white btn-num\">5</button>\r\n                    <button class=\"btn btn-white btn-num\">6</button>\r\n                    <button class=\"btn btn-white btn-num\">7</button>\r\n                    <button class=\"btn btn-white btn-num btn-circle\" type=\"button\"><i class=\"fa fa-chevron-right\"></i>\r\n                    </button>\r\n                </div>\r\n                <span>第</span>\r\n                <input type=\"text\" class=\"page_input\" value=\"40\">\r\n                <span>页</span>\r\n                <a href=\"\" class=\"btn btn-circle\"><i class=\"fa fa-refresh\"></i></a>\r\n            </div>\r\n        </div>\r\n\r\n    </div>\r\n    ");

	templateBuilder.Append("<div class=\"lib_ft\">\r\n    <div class=\"friendlink\">\r\n        <div class=\"container\">\r\n            <span>友情链接：</span>\r\n            <ul>\r\n                <li><a href=\"http://www.cnu.edu.cn/\">首都师范大学</a></li>\r\n                <li><a href=\"http://202.112.118.46/index.html\">BALIS</a></li>\r\n                <li><a href=\"http://www.calis.edu.cn/calisnew/\">CALIS</a></li>\r\n                <li><a href=\"http://www.netlib.edu.cn/\">北京高校网络图书馆</a></li>\r\n                <li><a href=\"http://202.204.214.131/service/lib_domestic\">国内网上图书馆</a></li>\r\n                <li><a href=\"http://mail.cnu.edu.cn/\">首师亿邮</a></li>\r\n                <li><a href=\"http://oa.cnu.edu.cn/\">办公系统</a></li>\r\n            </ul>\r\n        </div>\r\n    </div>\r\n    <div class=\"ft_con text-center\">\r\n        <div class=\"container\">\r\n            <p>联系方式：010-68903330 cnulib@cnu.edu.cn</p>\r\n            <p><span>访问统计：今日访问人次8899</span>&nbsp;&nbsp;<span>累计访问人次：12345678</span></p>\r\n            <p class=\"text-center\">首都师范大学图书馆版权所有</p>\r\n        </div>\r\n    </div>\r\n</div>");


	templateBuilder.Append("\r\n</body>\r\n<script src=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/lib/jquery.min.js\"></");
	templateBuilder.Append("script>\r\n<script src=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/lib/bootstrap/js/bootstrap.min.js\"></");
	templateBuilder.Append("script>\r\n<script src=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/lib/jquery-ui/jquery-ui.min.js\">\r\n</");
	templateBuilder.Append("script>\r\n<script src=\"");
	templateBuilder.Append("/templates/ssd");
	templateBuilder.Append("/lib/select-widget-min.js\">\r\n</");
	templateBuilder.Append("script>\r\n<script type=\"text/javascript\">\r\n$(\".ui-select\").selectWidget({\r\n    change: function(changes) {\r\n        return changes;\r\n    },\r\n    effect: \"slide\",\r\n    keyControl: true,\r\n    speed: 200,\r\n    scrollHeight: 250\r\n});\r\n</");
	templateBuilder.Append("script>\r\n\r\n</html>");
	Response.Write(templateBuilder.ToString());
}
</script>
